package com.game;

import android.graphics.Bitmap;
import android.graphics.Canvas;

public class InfoBox 
{
	private Bitmap m_Shade;
	private ButtonOneTouch m_Button;
	
	public InfoBox(Bitmap shade, ButtonOneTouch button)
	{
		m_Shade = shade;
		
		m_Button = button;
	}
	
	public void Draw(Canvas canvas)
	{
		canvas.drawBitmap(m_Shade, 0, 0, null);
		m_Button.Draw(canvas);
	}
	
	public boolean HandleTouch(int x, int y)
	{
		m_Button.TryTouch(x, y);		
		if(m_Button.Used()) return true;
		
		return false;
	}

}
